//import java.util.Arrays;
//import java.util.Scanner;
//
//public class Main {
//    public static void main(String[] args) {
//        Scanner scanner = new Scanner(System.in);
//        int n = scanner.nextInt();
//        int m = scanner.nextInt();
//
//        int[] arr = new int[n];
//
//        Solution solution = new Solution();
//        System.out.println(solution.maxSubarraySum(arr, m));
//    }
//}
//
//class Solution {
//    public long maxSubarraySum(int[] nums, int k) {
//        int n = nums.length;
//        long[] sum = new long[n + 1];
//
//        for (int i = 0; i < n; i++) {
//            sum[i + 1] = sum[i] + nums[i];
//        }
//
//        long[] minS = new long[k];
//        Arrays.fill(minS,Integer.MAX_VALUE);
//
//        long res = Long.MIN_VALUE;
//        for (int i = 0; i < n + 1; i++) {
//            int j = i % k;
//            res = Math.max(res,sum[i] - minS[j]);
//            minS[j] = Math.min(minS[j], sum[i]);
//        }
//        return res;
//    }
//}


//public class Main{
//    public static void main(String[] args) {
//        String s = "123";
//        String s2 = "123";
//
//        System.out.println(s.equals(s2));
//    }
//}


import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        StringBuilder s1 = new StringBuilder(scanner.nextLine()).reverse();
        StringBuilder s2 = new StringBuilder(scanner.nextLine()).reverse();


        int n = s1.length();
        int m = s2.length();
        int max = Math.max(n,m);
        StringBuilder stringBuilder = new StringBuilder();

        boolean flag = false;
        for (int i = 0; i < max; i++) {
            char c1,c2;

            c1 = i >= n ? '0' : s1.charAt(i);
            c2 = i >= m ? '0' : s2.charAt(i);


            if(c1 == '1' && c2 == '1'){
                stringBuilder.append(flag ? '1' : '0');
                flag = true;
            }else if (c1 == '1' || c2 == '1'){
                stringBuilder.append(flag ? '0' : '1');
            }else {
                stringBuilder.append(flag ? '1' : '0');
                flag = false;
            }
        }
        if(flag){
            stringBuilder.append('1');
        }
        System.out.println(stringBuilder.reverse());
    }
}